home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / checkbox / plugins / boot_prompt.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.1 KB  |  23 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from checkbox.lib.environ import get_variable
  5. from checkbox.properties import Bool
  6. from checkbox.plugin import Plugin
  7.  
  8. class BootPrompt(Plugin):
  9.     enable = Bool(default = False)
  10.     
  11.     def register(self, manager):
  12.         super(BootPrompt, self).register(manager)
  13.         self._manager.reactor.call_on('prompt-begin', self.prompt_begin)
  14.  
  15.     
  16.     def prompt_begin(self, interface):
  17.         if get_variable('UPSTART_JOB') and not (self.enable):
  18.             self._manager.reactor.stop_all()
  19.         
  20.  
  21.  
  22. factory = BootPrompt
  23.